package com.lcxw.hxzbapi.controller.incomecontroller;

import com.lcxw.hxzbapi.entity.requestBean.GetMyTixianRecordReq;
import com.lcxw.hxzbapi.entity.requestBean.TixianApplyReq;
import com.lcxw.hxzbapi.entity.response.Response;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/tixian")
public class TixianController {

    @Resource
    TixianRealization tixianRealization;

    //提现申请接口
    @PostMapping("/apply")
    public Response tixianApply(@RequestBody TixianApplyReq tixianApplyReq) {
        return tixianRealization.tixianApply(tixianApplyReq);
    }

    //获取我的提现记录接口
    @PostMapping("/get/myRecord")
    public Response getMyTixianRecord(@RequestBody GetMyTixianRecordReq getMyTixianRecordReq) {
        return tixianRealization.getMyTixianRecord(getMyTixianRecordReq);
    }
    //可用提现的钱充值幸运币
    @PostMapping("/recharge")
    public Response recharge(@RequestBody TixianApplyReq tixianApplyReq) {
        return tixianRealization.recharge(tixianApplyReq);
    }

}
